package com.itheima1.itheima.homework5;

public class Consumer implements Runnable {
    private StoreHouse house;

    public Consumer(StoreHouse house) {
        this.house = house;
    }

    @Override
    public void run() {
        while (true) {
            house.get();
        }
    }
}
